{load header}

<!--/H-->
<!-- 内容区 -->
<div id="main-content">
    <div id="top-alert" class="fixed alert alert-error" style="display: none;">
        <button class="close fixed" style="margin-top: 4px;">&times;</button>
        <div class="alert-content">这是内容</div>
    </div>
    <div id="main" class="main">

        <!-- nav --><!-- nav -->

        <div class="main-title">
            <h2>跳转记录列表</h2>
        </div>
        <div class="cf">
            <button class="btn" onclick="javascript:history.back(-1);return false;">返回</button>
            <!-- 高级搜索 -->
            <div class="search-form fr cf">
                <div class="sleft">
                    <input type="text" id="time-start" name="time-start" class="text input-2x"
                           value="{$time_start}" placeholder="起始时间"/> -
                    <input type="text" id="time-end" name="time-end" class="text input-2x"
                           value="{$time_end}" placeholder="结束时间"/>
                    <input type="hidden" name="lend_id" class="search-input" value="{if $lend_id }{$lend_id}{/if}">
                    <input type="hidden" name="reload_type" class="search-input" value="{if $reload_type }{$reload_type}{/if}">
                    <input type="hidden" name="removal" class="search-input" value="{if $removal }{$removal}{/if}">
                    <a class="sch-btn" style="float: none;" href="javascript:;" id="search" url=""><i class="btn-search"></i></a>
                </div>
            </div>
        </div>
        <div class="data-table table-striped tab-content">
            <table>
                <thead>
                <tr>
                    <th>类型</th>
                    <th>请求时间</th>
                    <th>请求ip</th>
                    <th>请求来源</th>
                    <th>跳转链接</th>
                    <th>request_plat</th>
                    <th>request_flag</th>
                </tr>
                </thead>
                <tbody>
                <!--{loop $list $val}-->
                <tr>
                    <td>{$val['type_val']}</td>
                    <td>{$val['request_time']}</td>
                    <td>{$val['request_ip']}</td>
                    <td>{$val['request_from']}</td>
                    <td>{$val['jump_url']}</td>
                    <th>{$val['request_plat']}</th>
                    <th>{$val['request_flag']}</th>
                </tr>
                <!--{/loop}-->
                </tbody>
            </table>
            <!-- 分页 -->
            <div class="page">
                <div>
                    {$showpage}
                    <span class="rows">共 {$Total} 条记录</span>
                    <!--
                    <span class="rows" >金额总计 <font color="#F90">{$T_total['total']}</font> 元</span>
        <a target ="_blank;" href="{eval echo site_url('borrow/index_to_excel')}?{eval echo $_SERVER['QUERY_STRING'];}" >导出结果</a>
                    -->

                </div>
            </div>
        </div>

    </div>
</div>
<link href="{eval echo base_url()}static/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
<link href="{eval echo base_url()}static/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
<script type="text/javascript"
        src="{eval echo base_url()}static/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript"
        src="{eval echo base_url()}static/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
        charset="UTF-8"></script>
<script type="text/javascript">

    $(function () {
        //搜索功能
        $("#search").click(function () {
            var url = $(this).attr('url');
            var query = $('.search-form').find('input').serialize();
            query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
            query = query.replace(/^&/g, '');
            if (url.indexOf('?') > 0) {
                url += '&' + query;
            } else {
                url += '?' + query;
            }
            window.location.href = url;
        });

        //回车自动提交
        $('.search-form').find('input').keyup(function (event) {
            if (event.keyCode === 13) {
                $("#search").click();
            }
        });

        $('#time-start').datetimepicker({
            format: 'yyyy-mm-dd',
            language: "zh-CN",
            minView: 2,
            autoclose: true
        });

        $('#time-end').datetimepicker({
            format: 'yyyy-mm-dd',
            language: "zh-CN",
            minView: 2,
            autoclose: true,
            pickerPosition: 'bottom-left'
        })


    })
</script>
<!--F-->{load footer}